package io.github.mymonstercat.entity.attachmentCheck;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class AttachmentResponse {

    private static final int ERROR_CODE = 500;

    private static final int SUCCESS_CODE = 200;

    private int code;
    private String check;
    private String forcedControl;
    private String message;
    private String data;

    public static AttachmentResponse error(String errorMessage){
        return new AttachmentResponse(ERROR_CODE, null, null, errorMessage, null);
    }

    public static AttachmentResponse success(String check, String forcedControl, String data){
        return new AttachmentResponse(SUCCESS_CODE, check, forcedControl, check, data);
    }
}
